package com.module.framework.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lib_now_lend")
public class NowLend {

    private Integer id;
    private Long userId;
    private Integer bookId;
    private Integer deadFlag;
    private Integer status;
    private Date lossTime;

    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String author;
    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    private Integer totalNumber;
    @TableField(exist = false)
    private Integer spareNumber;
    @TableField(exist = false)
    private String picture;
    @TableField(exist = false)
    private String location;
    @TableField(exist = false)
    private String publicationInformation;
    @TableField(exist = false)
    private String description;


    private Integer delayTime;

    private Date deadline;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Integer delFlag;
}
